package com.erp.gather.controller;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.erp.gather.config.UrlConfig;
import com.erp.gather.mapper.*;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.DingDingPushUtil;
import com.ruoyi.gather.api.RemoteCollectProductService;
import com.ruoyi.gather.api.domain.*;
import com.ruoyi.gather.api.domain.dto.AeAutoProductDto;
import com.ruoyi.shop.api.RemoteSellerStorePriceTemplateService;
import com.ruoyi.shop.api.RemoteSellerStoreService;
import com.ruoyi.shop.api.domain.ErpSellerStorePriceTemplate;
import com.ruoyi.system.api.RemoteFileService;
import com.ruoyi.system.api.domain.SysOss;
import com.ruoyi.system.api.domain.dto.OssUrlDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

import static jodd.util.ThreadUtil.sleep;

//@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@RequiredArgsConstructor
@RequestMapping("gather/test")
@RestController
public class TestController {

    @Resource
    RemoteSellerStoreService remoteSellerStoreService;
    @Resource
    RemoteSellerStorePriceTemplateService remoteSellerStorePriceTemplateService;

    @Resource
    RemoteCollectProductService remoteCollectProductService;
    @Resource
    ErpCollectProductMapper erpCollectProductMapper;
    @Resource
    RemoteFileService remoteFileService;
    @Resource
    UrlConfig urlConfig;

    @GetMapping("/uploadNewPicToOssTest")
    private R<Object> uploadNewPicToOssTest(Long id) {
        ErpCollectProduct erpCollectProduct = erpCollectProductMapper.selectById(id);
        String mergeUrl = uploadNewPicToOss("https://ae01.alicdn.com/kf/S1f736d1595454814addb1560fa339c3dN.jpg");
        System.out.println(mergeUrl);
        return R.ok(mergeUrl);
    }

    /**
     * 根据图片地址，上传图片
     *
     * @param newPicUrl
     * @return
     */
    public String uploadNewPicToOss(String newPicUrl) {
        OssUrlDto dto = new OssUrlDto();
        dto.setOldUrl(newPicUrl);
        R<Object> returnObj = remoteFileService.uploadUrl(dto);
        if (returnObj.getCode() != 200) {
            return returnObj.getMsg();
        }
        System.out.println(returnObj);
        String toJSONString = JSONObject.toJSONString(returnObj.getData());
        SysOss oss = JSONObject.parseObject(toJSONString, SysOss.class);
        System.out.println(oss);
        return oss.getUrl();
    }


    @GetMapping("/testMethod1")
    private R<Object> testMethod1() {
        R<Object> collectProductObject = remoteCollectProductService.getCollectProductInfoById(1746104957848621070L);
        System.out.println(collectProductObject);
        return null;
    }

    @GetMapping("/testMethod")
    public R<Object> testMethod() {
        String res = "{\"absoluteQuoteMap\":\"[{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"US\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"FR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"UK\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"JP\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"CA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"ES\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"NL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"IL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"CL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"AU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"UA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BY\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"TH\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"SG\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"KR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"ID\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"MY\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PH\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"VN\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"IT\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"DE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"SA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"AE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":260.09,\\\"14:173\\\":260.09,\\\"14:29\\\":260.09,\\\"14:366\\\":260.09,\\\"14:175\\\":260.09,\\\"14:10\\\":260.09},\\\"shiptoCountry\\\":\\\"TR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PT\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":224.77,\\\"14:173\\\":224.77,\\\"14:29\\\":224.77,\\\"14:366\\\":224.77,\\\"14:175\\\":224.77,\\\"14:10\\\":224.77},\\\"shiptoCountry\\\":\\\"CO\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"MX\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":379.29,\\\"14:173\\\":379.29,\\\"14:29\\\":379.29,\\\"14:366\\\":379.29,\\\"14:175\\\":379.29,\\\"14:10\\\":379.29},\\\"shiptoCountry\\\":\\\"MA\\\"}]\",\"activityId\":5000000123497753,\"aeProductId\":1005006750007014,\"aeopAeProductSKus\":[{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:10\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/S1ed9354314d640ebb3288d719af80c40L.jpg\",\"property_value_definition_name\":\"05\",\"property_value_id\":\"10\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-01-01\",\"currency_code\":\"CNY\"},{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:29\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/S0917eadd5440469ea200e51d7c10f211w.jpg\",\"property_value_definition_name\":\"06\",\"property_value_id\":\"29\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-02-01\",\"currency_code\":\"CNY\"},{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:173\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/Se55027738c26407e88c3433ea1a7e02dT.jpg\",\"property_value_definition_name\":\"03\",\"property_value_id\":\"173\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-03-01\",\"currency_code\":\"CNY\"},{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:175\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/Sbe2c3b92815d4c3ea1f0c5c9bf1dabe1P.jpg\",\"property_value_definition_name\":\"04\",\"property_value_id\":\"175\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-04-01\",\"currency_code\":\"CNY\"},{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:193\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/S86dd31081ad64b2aaef7a02e721d09cao.jpg\",\"property_value_definition_name\":\"01\",\"property_value_id\":\"193\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-05-01\",\"currency_code\":\"CNY\"},{\"package_width\":10,\"package_height\":10,\"sku_price\":\"182.06\",\"package_length\":10,\"ipm_sku_stock\":\"199\",\"sku_stock\":true,\"id\":\"14:366\",\"gross_weight\":\"100\",\"aeop_s_k_u_property\":[{\"sku_image\":\"https://ae01.alicdn.com/kf/S98ba84792d0b4447b0702aeb6c3452d2W.jpg\",\"property_value_definition_name\":\"02\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\"}],\"sku_code\":\"LS53731242391847-06-01\",\"currency_code\":\"CNY\"}],\"aeopNationalQuoteConfiguration\":\"[{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"US\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"FR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"UK\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"JP\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"CA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"ES\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"NL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"IL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"CL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"AU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"UA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BY\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"TH\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"SG\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"KR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"ID\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"MY\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PH\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"VN\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"IT\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"DE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"SA\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"AE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PL\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":260.09,\\\"14:173\\\":260.09,\\\"14:29\\\":260.09,\\\"14:366\\\":260.09,\\\"14:175\\\":260.09,\\\"14:10\\\":260.09},\\\"shiptoCountry\\\":\\\"TR\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"PT\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"BE\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":224.77,\\\"14:173\\\":224.77,\\\"14:29\\\":224.77,\\\"14:366\\\":224.77,\\\"14:175\\\":224.77,\\\"14:10\\\":224.77},\\\"shiptoCountry\\\":\\\"CO\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":182.06,\\\"14:173\\\":182.06,\\\"14:29\\\":182.06,\\\"14:366\\\":182.06,\\\"14:175\\\":182.06,\\\"14:10\\\":182.06},\\\"shiptoCountry\\\":\\\"MX\\\"},{\\\"absoluteQuoteMap\\\":{\\\"14:193\\\":379.29,\\\"14:173\\\":379.29,\\\"14:29\\\":379.29,\\\"14:366\\\":379.29,\\\"14:175\\\":379.29,\\\"14:10\\\":379.29},\\\"shiptoCountry\\\":\\\"MA\\\"}]\",\"autoTaskId\":\"1772447969752670209\",\"brandStr\":\"[{\\\"attr_name\\\":\\\"\\\",\\\"attr_name_id\\\":2,\\\"attr_value_id\\\":201512802},\",\"categoryId\":2138,\"code\":200,\"collectProductId\":1749376308158963718,\"currencyCode\":\"CNY\",\"customAttributes\":\"[{\\\"attr_name\\\":\\\"\\\",\\\"attr_name_id\\\":2,\\\"attr_value_id\\\":201512802},{\\\"attr_name_id\\\":219,\\\"attr_name\\\":\\\"Origin\\\",\\\"attr_value_id\\\":9441741844,\\\"attr_value\\\":null},{\\\"attr_name_id\\\":458,\\\"attr_name\\\":\\\"Material\\\",\\\"attr_value_id\\\":123,\\\"attr_value\\\":null},{\\\"attr_name_id\\\":14,\\\"attr_name\\\":\\\"Color\\\",\\\"attr_value_id\\\":10,\\\"attr_value\\\":\\\"1\\\"},{\\\"attr_name_id\\\":200000631,\\\"attr_name\\\":\\\"is_customized\\\",\\\"attr_value_id\\\":2468,\\\"attr_value\\\":null}]\",\"customAttributesAll\":\"[{\\\"attr_name_id\\\":2,\\\"attr_name\\\":\\\"\\\",\\\"attr_value_id\\\":201512802},{\\\"attr_name_id\\\":219,\\\"attr_name\\\":\\\"Origin\\\",\\\"attr_value_id\\\":9441741844},{\\\"attr_name_id\\\":458,\\\"attr_name\\\":\\\"Material\\\",\\\"attr_value_id\\\":123},{\\\"attr_name_id\\\":14,\\\"attr_name\\\":\\\"Color\\\",\\\"attr_value_id\\\":10,\\\"attr_value\\\":\\\"1\\\"},{\\\"attr_name_id\\\":200000631,\\\"attr_name\\\":\\\"is_customized\\\",\\\"attr_value_id\\\":2468}]\",\"deliveryTime\":7,\"detail\":\"\",\"detailImg\":\"https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg;https://ae01.alicdn.com/kf/Sbc7ddbc131904e7cb516f7c11f45a64fN.jpg;https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg;https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg;https://ae01.alicdn.com/kf/S06cfbc80b0d14608af3e242ae833bb3bA.jpg;https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg;https://ae01.alicdn.com/kf/Sab2d8a2043404d54bdd5fafc87845944d.jpg;https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg;https://ae01.alicdn.com/kf/Sb65fa6de8fed4c9f8d63169fb9621f8dh.jpg;https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg;https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg;https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg;https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg;https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg;https://ae01.alicdn.com/kf/Sb887fbbd13204db8826a1317b84ae0f1h.jpg;https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg;https://ae01.alicdn.com/kf/S9cabe96ea8994119b6fd480362ba8f73V.jpg;https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg;https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg;https://ae01.alicdn.com/kf/Sd43605a4f62e4cf5ab2afbdbfe054515w.jpg;https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg;https://ae01.alicdn.com/kf/Sa7b609212cab4c57936c06c04ae1afc0L.jpg;https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg;https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg\",\"detailImgOld\":\"common-product/2024/01/25/4d04ac9d93524983966ae0919221491d.jpg;common-product/2024/01/25/9ada8230374b4f71840cf0adf206869f.jpg;common-product/2024/01/25/a7ef36d3b17140c79b67a71d050fe626.jpg;common-product/2024/01/25/d4ea7e05d7dc427bafc95e4fee5689e2.jpg;common-product/2024/01/25/95c6dfabe70b40a5acdcf2fd47c592bc.jpg;common-product/2024/01/25/e2f9647f0637473a863ce116666a7f52.jpg;common-product/2024/01/25/c9b2233eb6304eda8dbbe58c4f92f99d.jpg;common-product/2024/01/25/ac9cb3a801514ae8bd39d3c74880a95e.jpg;common-product/2024/01/25/03aec18a83a849b784ad32eedd3083b2.jpg;common-product/2024/01/25/89b59ab683ad4dbcbe2cd796fbeeb99e.jpg;common-product/2024/01/25/3440548a1c054371acf53b9a22bf5b4f.jpg;common-product/2024/01/25/209ed5160e444db597e9853b89d533d7.jpg;common-product/2024/01/25/398617bd49c9465a8841b4eec1017f4c.jpg;common-product/2024/01/25/05a0186fee3b4a9dafc3d9f22fe72d23.jpg;common-product/2024/01/25/25cdeb4b1def4daa8820d0f00ce2703c.jpg;common-product/2024/01/25/90b9811b015743c791e65b2585a1b2cf.jpg;common-product/2024/01/25/b2a9d64da17342648f1697a716f47d4f.jpg;common-product/2024/01/25/9a2c6b48030941308cde5fa8bdfaa8dc.jpg;common-product/2024/01/25/933367456a1f4655bc7fbe324c4a6aca.jpg;common-product/2024/01/25/5743912f713d4b5abfbfdcf5a9bd91a5.jpg;common-product/2024/01/25/90f0677e7f56448aae7c713e0f8e9912.jpg;common-product/2024/01/25/8a3ca70df0b048b9b42a948340dea822.jpg;common-product/2024/01/25/09853d3584214b1782ef5e871b4c683b.jpg;common-product/2024/01/25/6e5e8ae9b45b4358b115576c6bdcea4d.jpg\",\"detailSourceList\":[{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"type\\\":\\\"text-image\\\",\\\"images\\\":[{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sbc7ddbc131904e7cb516f7c11f45a64fN.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S06cfbc80b0d14608af3e242ae833bb3bA.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sab2d8a2043404d54bdd5fafc87845944d.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb65fa6de8fed4c9f8d63169fb9621f8dh.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb887fbbd13204db8826a1317b84ae0f1h.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S9cabe96ea8994119b6fd480362ba8f73V.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sd43605a4f62e4cf5ab2afbdbfe054515w.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sa7b609212cab4c57936c06c04ae1afc0L.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg\\\"}]}],\\\"version\\\":\\\"2.0.0\\\"}\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"type\\\":\\\"text-image\\\",\\\"images\\\":[{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sbc7ddbc131904e7cb516f7c11f45a64fN.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S06cfbc80b0d14608af3e242ae833bb3bA.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sab2d8a2043404d54bdd5fafc87845944d.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb65fa6de8fed4c9f8d63169fb9621f8dh.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfc83d6435f314224b9c14cda1b9269737.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S2e362385117040d0aefb9d4e21b30a5ae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb887fbbd13204db8826a1317b84ae0f1h.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc816b85cd2824c148a81337e10ad542bs.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S9cabe96ea8994119b6fd480362ba8f73V.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sb99aa3dfb64f46a7819a28f359510cff8.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sfe713b6d862148f69b4e774ea4df3beae.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sd43605a4f62e4cf5ab2afbdbfe054515w.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sc1084e1521b145c29f4a1c7cbcdb343bt.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/Sa7b609212cab4c57936c06c04ae1afc0L.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S744e796caee241799a05ead88a06a652M.jpg\\\"},{\\\"style\\\":{},\\\"url\\\":\\\"https://ae01.alicdn.com/kf/S26ac199351aa48d3a1c15c7d06669825U.jpg\\\"}]}],\\\"version\\\":\\\"2.0.0\\\"}\",\"locale\":\"en_US\"}],\"erpSellerProductSkuList\":[{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-01-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/f2cb3f37e25d4f988e3a69390468c7f2.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:10\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"},{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-02-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/69730a99b3414b2ba27a68559a2c2110.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:29\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"},{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-03-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/c8e88f18618940a99957382b2d14a327.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:173\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"},{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-04-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/ec2ad0828191426ca3f4bcd313ddddb4.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:175\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"},{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-05-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/c5ebd4ce1c9145b781fd7da0ecd172b8.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:193\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"},{\"collectSkuPrice\":\"64.01\",\"createBy\":\"1747879570134913025\",\"params\":{},\"skuCode\":\"LS53731242391847-06-01\",\"skuHeight\":10.0,\"skuImage\":\"common-product/2024/01/25/0851402cebbc46aabfbb8de96c9c1d89.jpg\",\"skuLength\":10.0,\"skuPrice\":\"70.41\",\"skuPropertyIds\":\"14:366\",\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\"}],\"freightTemplateId\":50070384481,\"grossWeight\":\"0.1\",\"imageURLs\":\"https://ae01.alicdn.com/kf/Se7cf8bc9cbbb4c048d63c940494bb4ecA.jpg;https://ae01.alicdn.com/kf/S460fabf2895847e08e1af3aa862231fbl.jpg;https://ae01.alicdn.com/kf/S22c4b3c160274b82b872c2b41292cec6X.jpg;https://ae01.alicdn.com/kf/Sd80624905e2b4376b39efc3cc1e143e6o.jpg;https://ae01.alicdn.com/kf/Sc07092a35c5f4cd4b7ba7643f8ea9acbr.jpg;https://ae01.alicdn.com/kf/Sc7684c84f94a41a1bee70e77fa519e43n.jpg\",\"imageUrlsOld\":\"common-product/2024/01/25/6e769bf4ee1f4442b45a9489305254d7.jpg;common-product/2024/01/25/4b1e213add5141f996baf3c079c99305.jpg;common-product/2024/01/25/7497313496fa457cba75f33acb8fe046.jpg;common-product/2024/01/25/79ec7de16fed4fbe82ff05a795a6c680.jpg;common-product/2024/01/25/98e8272dc4b04e8e9cfb73d4dbf268b9.jpg;common-product/2024/01/25/5a61836da3174b8aa78778c78cfe052c.jpg\",\"isAddWatemark\":1,\"isAfflicateDiscount\":1,\"isAudit\":1,\"isAutoMate\":1,\"isMainImageReordering\":1,\"isPackSell\":\"0\",\"marketImages\":[{\"url\":\"https://ae01.alicdn.com/kf/S3c296832a2da4253b993d9db013d8b757.jpg\",\"image_type\":1},{\"url\":\"https://ae01.alicdn.com/kf/S76d2fa2013f649b793346108395004ffm.jpg\",\"image_type\":2}],\"marketing\":\"https://ae01.alicdn.com/kf/S3c296832a2da4253b993d9db013d8b757.jpg\",\"marketingOld\":\"common-product/2024/01/25/820248a39f844cc5834da9e859245feb.jpg\",\"msg\":\"上传成功\",\"packageHeight\":10,\"packageLength\":10,\"packageType\":\"0\",\"packageWidth\":10,\"priceAdjustmentMethod\":\"1\",\"productBrand\":\"201512802\",\"productDiscountId\":5000000123497753,\"productPrice\":\"182.06\",\"productType\":0,\"productUnit\":100000015,\"promiseTemplateId\":0,\"readjustPricesType\":1,\"reduceStrategy\":\"payment_success_deduct\",\"sellerId\":1747879570134913025,\"sellerStoreProductSkuList\":[{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437447763,\"id\":1772523243303370753,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-01-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/S1ed9354314d640ebb3288d719af80c40L.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/S1ed9354314d640ebb3288d719af80c40L.jpg\\\",\\\"property_value_definition_name\\\":\\\"05\\\",\\\"property_value_id\\\":\\\"10\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:10\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437447763},{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437448306,\"id\":1772523245639598081,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-02-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/S0917eadd5440469ea200e51d7c10f211w.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/S0917eadd5440469ea200e51d7c10f211w.jpg\\\",\\\"property_value_definition_name\\\":\\\"06\\\",\\\"property_value_id\\\":\\\"29\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:29\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437448306},{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437448488,\"id\":1772523246356824065,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-03-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/Se55027738c26407e88c3433ea1a7e02dT.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/Se55027738c26407e88c3433ea1a7e02dT.jpg\\\",\\\"property_value_definition_name\\\":\\\"03\\\",\\\"property_value_id\\\":\\\"173\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:173\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437448488},{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437448697,\"id\":1772523247279570946,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-04-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/Sbe2c3b92815d4c3ea1f0c5c9bf1dabe1P.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/Sbe2c3b92815d4c3ea1f0c5c9bf1dabe1P.jpg\\\",\\\"property_value_definition_name\\\":\\\"04\\\",\\\"property_value_id\\\":\\\"175\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:175\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437448697},{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437449338,\"id\":1772523249909399553,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-05-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/S86dd31081ad64b2aaef7a02e721d09cao.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/S86dd31081ad64b2aaef7a02e721d09cao.jpg\\\",\\\"property_value_definition_name\\\":\\\"01\\\",\\\"property_value_id\\\":\\\"193\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:193\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437449338},{\"aeProductId\":1005006750007014,\"createBy\":\"1747879570134913025\",\"createTime\":1711437450009,\"id\":1772523252765720577,\"params\":{},\"sellerStoreProductId\":1772523242791665666,\"skuCode\":\"LS53731242391847-06-01\",\"skuHeight\":10.0,\"skuImage\":\"https://ae01.alicdn.com/kf/S98ba84792d0b4447b0702aeb6c3452d2W.jpg\",\"skuLength\":10.0,\"skuPrice\":\"182.06\",\"skuProperty\":\"[{\\\"sku_image\\\":\\\"https://ae01.alicdn.com/kf/S98ba84792d0b4447b0702aeb6c3452d2W.jpg\\\",\\\"property_value_definition_name\\\":\\\"02\\\",\\\"property_value_id\\\":\\\"366\\\",\\\"sku_property_id\\\":\\\"14\\\"}]\",\"skuPropertyIds\":\"14:366\",\"skuStock\":199,\"skuWeight\":100,\"skuWidth\":10.0,\"updateBy\":\"1747879570134913025\",\"updateTime\":1711437450009}],\"settingFreightTemplateId\":7,\"stock\":199,\"storeId\":1747860511129456642,\"storeUserName\":\"cn1078275103recae\",\"subject\":\"30MM Flowers Wax Seal Stamp Rose/Daisy/Tulip Sealing Stamp Head For Scrapbooking Envelopes Wedding Invitations Gift Packaging\",\"subjectList\":[{\"locale\":\"en_US\",\"value\":\"30MM Flowers Wax Seal Stamp Rose/Daisy/Tulip Sealing Stamp Head For Scrapbooking Envelopes Wedding Invitations Gift Packaging\"}],\"templateId\":\"1747906005956415489\",\"white\":\"https://ae01.alicdn.com/kf/S76d2fa2013f649b793346108395004ffm.jpg\",\"whiteOld\":\"common-product/2024/01/25/a9cd8e34687842429180f68486603d0d.jpg\"}";

        AeAutoProductDto dto = JSONObject.parseObject(res, AeAutoProductDto.class);
//        3、增加联盟折扣
        R<Object> objectR = setCommission(dto);
        System.out.println(objectR);
        return null;
    }

    private R<Object> setCommission(AeAutoProductDto autoProductDto) {
        sleep(5000);
        String remark = null;
        BigDecimal afflicateDiscount = null;
        if (autoProductDto.getIsAfflicateDiscount() == 1) {
            afflicateDiscount = new BigDecimal(autoProductDto.getIsAfflicateDiscount());
        } else {
            R<Object> templateR = remoteSellerStorePriceTemplateService.sellerStorePriceTemplateById(Long.valueOf(autoProductDto.getTemplateId()));
            String templateString = JSONObject.toJSONString(templateR.getData());
            ErpSellerStorePriceTemplate template = JSONObject.parseObject(templateString, ErpSellerStorePriceTemplate.class);
            afflicateDiscount = template.getUnion();
        }
        if (afflicateDiscount.compareTo(BigDecimal.ZERO) > 0) {
            //调用孙哥方法
            R<Object> commissionObjectR = remoteSellerStoreService.setCommission(autoProductDto.getStoreId(), autoProductDto.getAeProductId(), afflicateDiscount.intValue());
            System.out.println(commissionObjectR);
            if (commissionObjectR.getCode() != 200) {
                return R.fail(commissionObjectR.getMsg().toString());
            } else {
                return R.ok("联盟折扣设置成功");
            }
        } else {
            return R.ok("无需设置联盟折扣");
        }
    }

    /**
     * 删除详情中中文
     *
     * @return
     */
    @GetMapping("/testMethod3")
    public R<Object> testMethod3() {
        List<ErpCollectProduct> productList = erpCollectProductMapper.selectList(
                new LambdaQueryWrapper<ErpCollectProduct>()
                        .like(ErpCollectProduct::getDetail, "仓库")
                        .eq(ErpCollectProduct::getDelFlag, 0)
                        .isNotNull(ErpCollectProduct::getCategoryId)
        );

        for (ErpCollectProduct productSel : productList) {
            String detailOld = productSel.getDetail();
            int index = detailOld.indexOf("仓库");
            int index1 = detailOld.indexOf("没有可用运输方式~");
//            System.out.println(detailOld);
            if (index != -1) {
                // 使用substring方法获取特定字符之前的所有字符
                String detailNew = detailOld.substring(0, index);
//            String detailNew = detailOld.substring(index,index1);
                // 打印修改后的字符串
                System.out.println(detailNew); //
                productSel.setDetail(detailNew);
                erpCollectProductMapper.updateById(productSel);
            } else {
                // 如果没有找到特定字符，则原始字符串不包含该字符，直接输出原始字符串或进行其他处理
                System.out.println("失败");
            }
        }
        return R.ok();


    }

    /**
     * 钉钉发送消息
     * @return
     */
    @GetMapping("/DingDingTest")
    public R<Object> DingDingTest(String msg,String mobile) {
        try{
            DingDingPushUtil.sendBySginXiaoPang(msg,mobile);
        }catch (Exception e){
            return R.fail("发送异常");
        }
        return R.ok("发送成功");
    }


}
